//
//  UserInfoCell.h
//  HotWord
//
//  Created by Rainbow on 7/26/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>


@protocol UserInfoCellDelegate;
@interface UserInfoCell : UITableViewCell<UITextFieldDelegate, UITextViewDelegate>
{
    BOOL _pickMode;
    NSString *_value;
}

@property (retain, nonatomic) IBOutlet UILabel *userInfoTitle;
@property (retain, nonatomic) IBOutlet UITextField *userInfoTextField;
@property (retain, nonatomic) IBOutlet UILabel *userInfoLabel;
@property (assign, nonatomic) id<UserInfoCellDelegate> delegate;
@property (retain, nonatomic) NSIndexPath *indexPath;
@property (retain, nonatomic) IBOutlet UIView *shadowView;
@property (retain, nonatomic) IBOutlet UITextView *statusTextView;

- (void)setInfoTitle:(NSString *)title infoValue:(NSString *)value pickMode:(BOOL)pickMode;

- (void)setIsEditing:(BOOL)isEditing;

@end

@protocol UserInfoCellDelegate <NSObject>

- (void)UserInfoCellShowPicker:(UserInfoCell *)cell;

- (void)UserInfoCellBeginEdit:(UserInfoCell *)cell;

- (void)UserInfoCellEndEdit:(UserInfoCell *)cell;

- (void)UserInfoCellChooseDreamSchool:(UserInfoCell *)cell;

@end